<template>
  <div :class="isCollapse? 'logo-collapsed' : 'logo'" v-if="setting.logoHidden">
    <img src="@/assets/logo.png" alt="" />
    <p>{{ setting.title }}</p>
  </div>
</template>

<script setup>
import setting from "@/utils/setting.js";
defineProps(['isCollapse'])


</script>

<style lang="scss" scoped>
.logo {
  width: 100%;
  height: $logoHeight;
  display: flex;
  align-items: center;
  padding: 20px;
  color:#fff;
  background-color: #545c64;
  img {
    width: 40px;
    height: 40px;
  }
  p {
    font-size: 15px;
    margin-left: 10px;
  }
  transition: all 0.3s;
}
.logo-collapsed {
  width: 100%;
  height: $logoHeight;
  background-color: #545c64;
  display: flex;
  align-items: center;
  padding: 10px;
  img {
    width: 40px;
    height: 40px;
  }
  p {
    display: none;
  }
}
</style>